//
// Created by longyunbo on 6/23/21.
//

#ifndef ANALYSIS_BYTECODESTREAM_H
#define ANALYSIS_BYTECODESTREAM_H
#include "../intepreter/BaseBytecodeStream.h"
#include "CodeAttributeInfo.h"
//class CodeAttributeInfo;
class MethodInfo;

struct BytecodeStream : BaseBytecodeStream  {

public: BytecodeStream(MethodInfo* valueBelongMethod, CodeAttributeInfo* valueBelongCode) {
          this->belongMethod = valueBelongMethod;
          this->belongCode = valueBelongCode;
          this->length =valueBelongCode->get_codeLength();
          this->index = 0;
          this->codes = new char[this->getLength()];
    }



};


#endif //ANALYSIS_BYTECODESTREAM_H
